<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('公告查看')" />
    <th:block th:include="include :: datetimepicker-css" />
    <th:block th:include="include :: bootstrap-select-css" />
    <th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-manager-edit" th:object="${manager}">
        <input id="id" name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-2 control-label">发布人：</label>
            <div class="col-sm-10">
                <input id="noticeClass" name="noticeClass"  th:field="*{browsePeople}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">发布时间：</label>
            <div class="col-sm-10">
                <input id="remarks" name="remarks"  th:field="*{timeStart}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">主题：</label>
            <div class="col-sm-10">
                <input id="remarks" name="remarks"  th:field="*{title}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">内容：</label>
            <div class="col-sm-10">
                <input id="remarks" name="remarks"  th:field="*{content}" class="form-control" type="text" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: summernote-js" />
<script type="text/javascript">
    var prefix = ctx + "system/manager";

    function submitHandler() {
        var val = $("#form-manager-edit").serialize();
        if ($.validate.form()) {
            var fromData = $("#form-manager-edit").serialize();
            $.operate.save(prefix + "/edit",fromData);
        }
    }
</script>
</body>
</html>